package cn.tedu.spring.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author 董代恒
 * @version 1.0
 */
//标识此类为一个配置类,Spring Framework会优先加载配置类
@Configuration
//自动扫描注解
//框架会自动扫描指定子包及子包下的所有类,创建Bean对象放入Ioc容器中
@ComponentScan("cn.tedu.spring")
public class AppConfig {

}
